import 'package:flutter/material.dart';

class TodoPage extends StatelessWidget {
  TodoPage({
    Key key,
    @required this.child,
    this.disableLeftRight = false,
  }) : super(key: key);

  final Widget child;
  final bool disableLeftRight;

  @override
  Widget build(BuildContext context) {
    var padding = MediaQuery.of(context).padding;
    return Padding(
      child: child,
      padding: EdgeInsets.only(
        top: padding.top,
        left: disableLeftRight ? 0 : 20,
        right: disableLeftRight ? 0 : 20,
        bottom: padding.bottom,
      ),
    );
  }
}
